<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>订单管理_订单列表</title>
    <link rel="stylesheet" href="/SVN/DR/Public/Css/admin/type-order.css" />
</head>
<body>
<table id="main">
    <tr>
        <td>您的位置：订单管理</td>
    </tr>
    <tr id="search">
        <td>
            <form method="post" action="/SVN/DR/index.php/Admin/Orders/index">
                <label for="order-id">订单编号：</label>
                <input type="text" name="id" value="" class="text-word" id="order-id">
                <label for="order-status">订单状态：</label>
                <select name="status" class="text-select" id="order-status">
                    <option value="" selected="selected">订单状态</option>
                    <option value="0">未付款</option>
                    <option value="1">已付款</option>
                    <option value="2">已发货</option>
                    <option value="3">已收货</option>
                    <option value="4">无效订单</option>
                </select>
                <input type="submit" value="查询" class="text-but">
            </form>
        </td>
    </tr>
    <tr>
        <td>
            <table id="main-tab">
                <tr>
                    <th>订单id</th>
                    <th>会员id</th>
                    <th>联系人</th>
                    <th>地址</th>
                    <th>邮编</th>
                    <th>电话</th>
                    <th>购买时间</th>
                    <th>备注信息</th>
                    <th>总金额</th>
                    <th>订单状态</th>
                    <th>操作</th>
                </tr>
                <?php if(is_array($order_list)): $i = 0; $__LIST__ = $order_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr class="<?php if(($mod) == "1"): ?>color<?php endif; ?>">
                        <td><?php echo ($v['id']); ?></td>
                        <td><?php echo ($v['uid']); ?></td>
                        <td><?php echo ($v['linkman']); ?></td>
                        <td><?php echo ($v['address']); ?></td>
                        <td><?php echo ($v['code']); ?></td>
                        <td><?php echo ($v['phone']); ?></td>
                        <td><?php echo ($v['addtime']); ?></td>
                        <td><?php echo ($v['note']); ?></td>
                        <td><?php echo ($v['total']); ?></td>
                        <td>
                            <?php switch($v['status']): case "0": ?>未付款<?php break;?>
                                <?php case "1": ?>已付款<?php break;?>
                                <?php case "2": ?>已发货<?php break;?>
                                <?php case "3": ?>已收货<?php break;?>
                                <?php case "4": ?>无效订单<?php break; endswitch;?>
                        </td>
                        <td>
                            <a href="/SVN/DR/index.php/Admin/Orders/detail/id/<?php echo ($v['id']); ?>">订单详情</a>
                        </td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </table>
        </td>
    </tr>
    <tr>
        <td class="fenye">
            <?php if(empty($_GET['p'])): $p = '1'; ?>
                <?php else: ?>
                <?php $p = $_GET['p']; endif; ?>
            共 <?php echo ($count); ?> 条数据&nbsp;&nbsp;<?php echo ($p); ?>/<?php echo ($pages); ?> 页&nbsp;&nbsp;
            <a href="/SVN/DR/index.php/Admin/Orders/index">首页</a>
            <?php if(($p) > "1"): ?>&nbsp;&nbsp;<a href="/SVN/DR/index.php/Admin/Orders/index/p/<?php echo ($p-1); ?>">上一页</a><?php endif; ?>
            <?php if(($p) < $pages): ?>&nbsp;&nbsp;<a href="/SVN/DR/index.php/Admin/Orders/index/p/<?php echo ($p+1); ?>">下一页</a><?php endif; ?>
            &nbsp;&nbsp;<a href="/SVN/DR/index.php/Admin/Orders/index/p/<?php echo ($pages); ?>">尾页</a>
        </td>
    </tr>
</table>
</body>
</html>